
let url = ''
let Imhost = 'http://miaopay.testxyz115.com:20009'
console.log("NODE_ENV:"+process.env.NODE_ENV)
if (process.env.NODE_ENV === 'production'){
    url = 'http://api.agency.eajyq.net:9006/api'
    Imhost = 'http://im.tongxie888.com'
} else if(process.env.NODE_ENV === 'test'){
    url = 'http://miaopay.testxyz115.com:20003/api'
    Imhost = 'http://miaopay.testxyz115.com:20009'
} else if(process.env.NODE_ENV === 'foshan'){
    url = 'http://api.agency.eajyq.net:9006/api'
    Imhost = 'http://im.tongxie888.com'
}

export function getApiHost(){
    return url
}

export function getImHost(){
    return Imhost
}
